<template>
    <a-modal
      v-model:visible="visible"
      title="编辑用户"
      :footer="false"
      :mask-closable="false"
      title-align="start">
      <a-form :model="userForm">
    <a-form-item field="name" placeholder="请输入用户名" label="用户名">
      <a-input
        v-model="userForm.name"
        placeholder="please enter your username..."
      />
    </a-form-item>
    <a-form-item field="post" label="密码">
      <a-input v-model="userForm.password" placeholder="请输入密码" />
    </a-form-item>
      </a-form>
    </a-modal>
</template>

<script lang="ts" setup>
  import { ref } from 'vue'
  const visible = ref(false)
  const userForm  = {
    name:'',
    password:''
  }
  </script>

  <style lang="less" scoped>
  .arco-result {
    padding: 0 20px;
  }
  </style>
